#include "../inc/link.h"

Link::Link()
{
	node = NULL;
	match.clear();
}

Link::Link(const Link &_l)
{
	node = _l.node;
	match = _l.match;
}

Link::~Link()
{
	match.clear();
}

Link& Link::operator = ( const Link& _l )
{
	node = _l.node;
	match = _l.match;
	
	return *this;
}

SegmentTree* Link::getNode()
{
	return node;
}

SegmentTreeList Link::getMatch()
{
	return match;
}

void Link::setNode(SegmentTree *_s)
{
	node = _s;
}

void Link::setMatch( SegmentTreeList _sl)
{
	match.clear();
	match = _sl;
}
